package com.kunkun.subject.common.enums;

import lombok.Getter;

/**
 * 审核状态枚举
 *
 */
@Getter
public enum IsStatusAuditFlagEnum {
    AWAIT_AUDIT(2, "待审核"),
    PASS(1, "已通过"),
    UN_PASS(0, "未通过");
    

    public int code;

    public String desc;

    IsStatusAuditFlagEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static IsStatusAuditFlagEnum getByCode(int codeVal) {
        for (IsStatusAuditFlagEnum resultCodeEnum : IsStatusAuditFlagEnum.values()) {
            if (resultCodeEnum.code == codeVal) {
                return resultCodeEnum;
            }
        }
        return null;
    }

}

